package com.example.zhinongbao.contract;

public interface SchoolContract {

    interface View {
        void showSchoolNews(String[] newsTitles, String[] htmlContents, String[] imageUrls);
        void showError(String message);

        void onPublishSuccess();
    }

    interface Presenter {
        void attachView(View view);
        void detachView();
        void getSchoolNews();

        void publishNews(String title, String content, String imageUrl);
    }

    interface Model {
        boolean publishNews(String title, String content, String imageUrl);

        String[][][] getSchoolNewsData(); // 返回标题、HTML内容、图片URL
    }
}